package be.rugbyclubleuven.rachel.dao;

import org.hibernate.SessionFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Repository;

import be.rugbyclubleuven.rachel.domain.Lid;

/**
 * A service that offers the retrieval and persisting of all project data.
 * 
 */
@Repository("lidDAO")
public class LidDAO extends GenericHibernateDAO<Lid, Long> {

	// private SessionFactory sessionFactory;
	protected static final Logger LOGGER = LoggerFactory.getLogger(LidDAO.class);

	/**
	 * Constructs a new lid DAO with the right session factory injected.
	 * @param sessionFactory The session factory implementation to be used in this DAO.
	 */
	@Autowired
	public LidDAO(@Qualifier("rachelSessionFactory") SessionFactory sessionFactory) {
		this.sessionFactory = sessionFactory;
	}
}